package org.four.web.service;

import org.four.common.model.CompanyTree;
import org.four.common.model.LayuiPage;
import org.four.common.model.ZhaoPinBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name="merchant-module")
public interface ZslService {

    @RequestMapping("/zsl/findNavTree")
    List<CompanyTree> findNavTree();

    @RequestMapping("/zsl/addZhaoPin")
    ZhaoPinBean addZhaoPin(@RequestBody ZhaoPinBean zhaoPinBean);

    @RequestMapping("/zsl/queryZhaoPin")
    LayuiPage queryZhaoPin(@RequestParam("limit") int limit, @RequestParam("page") int page,@RequestBody ZhaoPinBean zhaoPinBean);

    @RequestMapping("/zsl/delZhaoPin")
    void delZhaoPin(@RequestParam("id") Integer[] id);

    @RequestMapping("/zsl/queryTouDi")
    LayuiPage queryTouDi(@RequestParam("limit") int limit, @RequestParam("page") int page,@RequestParam("id") Integer id);

    @RequestMapping("/zsl/updatestatus")
    void updatestatus(@RequestParam("id") Integer id, @RequestParam("status") Integer status);

    @RequestMapping("/zsl/dingdan")
    void dingdan(@RequestParam("id") Integer id);

    @RequestMapping("/zsl/findComZhaoPin")
    List findComZhaoPin(@RequestParam("id") Integer id);

    @RequestMapping("/zsl/addComUserCount")
    void addComUserCount(@RequestParam("id") Integer id,@RequestParam("count") Integer count);

    @RequestMapping("/zsl/findCount")
    Integer findCount(@RequestParam("id") Integer id);

    @RequestMapping("/zsl/queryById")
    ZhaoPinBean queryById(@RequestParam("id") Integer id);

    @RequestMapping("/zsl/updateTime")
    void updateTime(@RequestParam("id") Integer id);
}
